PendingIntentCompat

Helper for accessing features in PendingIntent.

Types

Link copied to clipboard

Functions

Link copied to clipboard
@NonNull
open fun getActivities(@NonNull context: @NonNull Context, requestCode: Int, intents: @NonNull Array<Intent>, flags: Int, isMutable: Boolean): @NonNull PendingIntent
@NonNull
open fun getActivities(@NonNull context: @NonNull Context, requestCode: Int, intents: @NonNull Array<Intent>, flags: Int, @Nullable options: @Nullable Bundle, isMutable: Boolean): @NonNull PendingIntent
Retrieves a PendingIntent with mandatory mutability flag set on supported platform versions.
Link copied to clipboard
@Nullable
open fun getActivity(@NonNull context: @NonNull Context, requestCode: Int, @NonNull intent: @NonNull Intent, flags: Int, isMutable: Boolean): @Nullable PendingIntent
@Nullable
open fun getActivity(@NonNull context: @NonNull Context, requestCode: Int, @NonNull intent: @NonNull Intent, flags: Int, @Nullable options: @Nullable Bundle, isMutable: Boolean): @Nullable PendingIntent
Retrieves a PendingIntent with mandatory mutability flag set on supported platform versions.
Link copied to clipboard
@Nullable
open fun getBroadcast(@NonNull context: @NonNull Context, requestCode: Int, @NonNull intent: @NonNull Intent, flags: Int, isMutable: Boolean): @Nullable PendingIntent
Retrieves a PendingIntent with mandatory mutability flag set on supported platform versions.
Link copied to clipboard
@RequiresApi(value = 26)
@NonNull
open fun getForegroundService(@NonNull context: @NonNull Context, requestCode: Int, @NonNull intent: @NonNull Intent, flags: Int, isMutable: Boolean): @NonNull PendingIntent
Retrieves a PendingIntent with mandatory mutability flag set on supported platform versions.
Link copied to clipboard
@Nullable
open fun getService(@NonNull context: @NonNull Context, requestCode: Int, @NonNull intent: @NonNull Intent, flags: Int, isMutable: Boolean): @Nullable PendingIntent
Retrieves a PendingIntent with mandatory mutability flag set on supported platform versions.
Link copied to clipboard
open fun send(@NonNull pendingIntent: @NonNull PendingIntent, code: Int, onFinished: @Nullable PendingIntent.OnFinished, @Nullable handler: @Nullable Handler)
open fun send(@NonNull pendingIntent: @NonNull PendingIntent, @NonNull context: @NonNull Context, code: Int, @NonNull intent: @NonNull Intent, onFinished: @Nullable PendingIntent.OnFinished, @Nullable handler: @Nullable Handler)
open fun send(@NonNull pendingIntent: @NonNull PendingIntent, @NonNull context: @NonNull Context, code: Int, @NonNull intent: @NonNull Intent, onFinished: @Nullable PendingIntent.OnFinished, @Nullable handler: @Nullable Handler, @Nullable requiredPermissions: @Nullable String, @Nullable options: @Nullable Bundle)
send variants that support PendingIntent.OnFinished callbacks have a bug on many API levels that the callback may be invoked even if the PendingIntent was never sent (ie, such as if the PendingIntent was canceled, and the send() invocation threw a PendingIntent.CanceledException).